namespace ErrorCode
{
    /// <summary>
    /// API分页请求参数
    /// </summary>
    public class APIPageRequest
    {
        /// <summary>
        /// 页码，从1开始
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页记录数
        /// </summary>
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 搜索关键字
        /// </summary>
        public string Keyword { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortField { get; set; }

        /// <summary>
        /// 排序方式：ascending（升序）或 descending（降序）
        /// </summary>
        public string SortOrder { get; set; } = "ascending";
    }
}